<?php

define('THIS_PATH', realpath(dirname(__FILE__)));

/**
 * Run this from command line
 * or better from cron daily
 * 
 */
include THIS_PATH . '/!inc.php';
try {
    $o = \StudyBuddy\SiteMap::factory($oRegistry);
    $o->run();
} catch (Exception $e) {
    echo "\nError: " . $e->getFile() . ' on ' . $e->getLine() . ' ' . $e->getMessage();
}
echo 'Done';
?>